package com.lxmes.business.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lxmes.common.annotation.Excel;
import com.lxmes.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 物料出库审批规则对象 cc_chuku_spgz
 *
 * @author 张志煜
 * @date 2023-03-26
 */
public class CcChukuSpgz extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 公司名称 */
    @Excel(name = "公司名称")
    private String factoryName;

    /** 公司代码 */
    @Excel(name = "公司代码")
    private String factoryCode;

    /** 部门编码 */
    private Long deptId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String deptName;

    /** 伙伴类型 */
    @Excel(name = "伙伴类型")
    private String hbType;

    /** 伙伴编码 */
    @Excel(name = "伙伴编码")
    private String hbCode;

    /** 出库类型 */
    @Excel(name = "出库类型")
    private String chukuType;

    /** 规则公式 */
    @Excel(name = "规则公式")
    private BigDecimal unitPrice;

    /** 制单人工号 */
    @Excel(name = "制单人工号")
    private Long zduserId;

    /** 制单人姓名 */
    @Excel(name = "制单人姓名")
    private String zduserName;

    /** 审批流编码 */
    @Excel(name = "审批流编码")
    private String spCode;

    /** 审批流名称 */
    @Excel(name = "审批流名称")
    private String spName;

    /** 运算符 */
    @Excel(name = "运算符")
    private String ysf;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setFactoryName(String factoryName)
    {
        this.factoryName = factoryName;
    }

    public String getFactoryName()
    {
        return factoryName;
    }
    public void setFactoryCode(String factoryCode)
    {
        this.factoryCode = factoryCode;
    }

    public String getFactoryCode()
    {
        return factoryCode;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setDeptName(String deptName)
    {
        this.deptName = deptName;
    }

    public String getDeptName()
    {
        return deptName;
    }
    public void setHbType(String hbType)
    {
        this.hbType = hbType;
    }

    public String getHbType()
    {
        return hbType;
    }
    public void setHbCode(String hbCode)
    {
        this.hbCode = hbCode;
    }

    public String getHbCode()
    {
        return hbCode;
    }
    public void setChukuType(String chukuType)
    {
        this.chukuType = chukuType;
    }

    public String getChukuType()
    {
        return chukuType;
    }
    public void setUnitPrice(BigDecimal unitPrice)
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice()
    {
        return unitPrice;
    }
    public void setZduserId(Long zduserId)
    {
        this.zduserId = zduserId;
    }

    public Long getZduserId()
    {
        return zduserId;
    }
    public void setZduserName(String zduserName)
    {
        this.zduserName = zduserName;
    }

    public String getZduserName()
    {
        return zduserName;
    }
    public void setSpCode(String spCode)
    {
        this.spCode = spCode;
    }

    public String getSpCode()
    {
        return spCode;
    }
    public void setSpName(String spName)
    {
        this.spName = spName;
    }

    public String getSpName()
    {
        return spName;
    }

    public String getYsf() {
        return ysf;
    }

    public void setYsf(String ysf) {
        this.ysf = ysf;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("factoryName", getFactoryName())
            .append("factoryCode", getFactoryCode())
            .append("deptId", getDeptId())
            .append("deptName", getDeptName())
            .append("hbType", getHbType())
            .append("hbCode", getHbCode())
            .append("chukuType", getChukuType())
            .append("unitPrice", getUnitPrice())
            .append("zduserId", getZduserId())
            .append("zduserName", getZduserName())
            .append("spCode", getSpCode())
            .append("spName", getSpName())
            .toString();
    }
}
